/**
 * @company : 版权所属 四川北星惯牌科技有限公司
 * @contact : 刘经理 19326416371
 **/
import {
	defineStore
} from 'pinia';
export const configInfoStore = defineStore('configInfoStore', {
	state: () => ({
		configInfo: null, //
	}),
	getters: {},
	actions: {
		async getConfigInfo() {
			const res = await $Api.login.getStartConfig();
			if (res.code === 1) {} else {
				uni.$u.toast(res.msg);
			}
		},
	},
	persist: {
		storage: {
			getItem(key) {
				return uni.getStorageSync(key)
			},
			setItem(key, value) {
				return uni.setStorageSync(key, value)
			},
		},
	},
})